import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, onResolve, onReject) {
  if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
  return originalPush.call(this, location).catch(err => err)
}
Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
<<<<<<< HEAD
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue")
  }
];
=======
  
  
  {
    path: '/interest',
    name: 'interest',
    component: ()=> import('../views/interest.vue'),
    redirect:{name:'interest'},
    children:[
      {
        path: '/induction',
        name: 'induction',
        component: ()=> import('../views/induction.vue')
      },
      {
        path: '/ready',
        name: 'ready',
        component: ()=> import('../views/ready.vue')
      },
      {
        path: '/about',
        name: 'About',
        component: ()=> import('../views/About.vue')
      },
    ]
  },
  
]
>>>>>>> 6bf8714517698cba3c843e451acfb7d17c339c11


const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
